package com.lxkpt.service.Impl;

import com.lxkpt.bean.Business;
import com.lxkpt.mapper.BusinessMapper;
import com.lxkpt.service.BusinessService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BusinessServiceImpl implements BusinessService {

    @Resource
    private BusinessMapper businessMapper;

    @Override
    public int deleteByPrimaryKey(Integer bnId) {
        return businessMapper.deleteByPrimaryKey(bnId);
    }

    @Override
    public int insert(Business record) {
        return businessMapper.insert(record);
    }

    @Override
    public int insertSelective(Business record) {
        return businessMapper.insertSelective(record);
    }

    @Override
    public Business selectByPrimaryKey(Integer bnId) {
        return businessMapper.selectByPrimaryKey(bnId);
    }

    @Override
    public int updateByPrimaryKeySelective(Business record) {
        return businessMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Business record) {
        return businessMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Business> selectBusiness(Business business) {
        return businessMapper.selectBusiness(business);
    }

    @Override
    public List<Business> searchBusiness(Business business) {
        return businessMapper.searchBusiness(business);
    }
}